package indi.zjh.dp.vc;

import java.io.Serializable;
import java.util.Date;

public class FileObject implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	// 文件提交时间
	protected long timestamp;
	// 文件在源代码库里的路径
	protected String srcFilePath;
	// 文件代表的业务类名
	protected String className;
	// 文件在业务代码库里的存放路径
	protected String repositoryFilePath;
	
	public FileObject(String srcFile, String clsName, String repFilePath)
	{
		this.srcFilePath = srcFile;
		this.className = clsName;
		this.repositoryFilePath = repFilePath;
		this.timestamp = new Date().getTime();
	}
	
	public long getTimestamp()
	{
		return this.timestamp;
	}
	
	public String getSrcFilePath()
	{
		return this.srcFilePath;
	}
	
	public String getClassName()
	{
		return this.className;
	}
	
	public String getRepositoryFilePath()
	{
		return this.repositoryFilePath;
	}
	
	public String toString()
	{
		return this.timestamp+":"+this.srcFilePath+":"+this.className+":"+this.repositoryFilePath;
	}
}
